package com.aimao.blog.pojo;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

public class Comment implements Serializable {
    private Integer id;

    private String username;

    private String email;

    private String content;

    private Long replycount;

    private Integer parentid;

    private Boolean status;

    @JSONField(format = "yyyy/MM/dd")
    private Date createtime;

    private Integer articleid;

    private Boolean readstate;

    public Comment(Integer id, String username, String email, String content, Long replycount, Integer parentid, Boolean status, Date createtime, Integer articleid, Boolean readstate) {
        this.id = id;
        this.username = username;
        this.email = email;
        this.content = content;
        this.replycount = replycount;
        this.parentid = parentid;
        this.status = status;
        this.createtime = createtime;
        this.articleid = articleid;
        this.readstate = readstate;
    }

    public Comment() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Long getReplycount() {
        return replycount;
    }

    public void setReplycount(Long replycount) {
        this.replycount = replycount;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getArticleid() {
        return articleid;
    }

    public void setArticleid(Integer articleid) {
        this.articleid = articleid;
    }

    public Boolean getReadstate() {
        return readstate;
    }

    public void setReadstate(Boolean readstate) {
        this.readstate = readstate;
    }
}